<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户评论</title>
    {include file="../application/index/view/common/link.html" /}
</head>
<body>
<!--头部-->
{include file="../application/index/view/common/header.html" /}
<div class="user-jianjie">
    <div class="layui-fluid user-info">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="panel up">
                        <div class="up-l">
                            <div class="u-l-box">
                                <div class="avatar">
                                    <img src="{$user.avatar|default=''}" alt="">
                                </div>
                                <div class="u-l-info">
                                    <p>{$user.nickname|default=$user.username}</p>
                                    <p class="sign">{$user.sign_name}</p>
                                </div>
                            </div>
                        </div>
                        <div class="up-r">
                            <span>Ta已经入住</span>
                            <span class="days">{$user.ruzu}</span>
                        </div>
                        <div class="clear-both"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-container user-nav-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md3">
                <div class="panel user-nav-list-box">
                    <ul>
                        <li class="{if get_module() == 'index' and get_controller() == 'Index' and get_action()=='user_jianjie'}user-nav-this{/if}">
                            <a href="{:url('index/index/user_jianjie',['user'=>$user.id])}">个人简介</a>
                        </li>
                        <li class="{if get_module() == 'index' and get_controller() == 'Index' and get_action()=='user_comments'}user-nav-this{/if}">
                            <a href="{:url('index/index/user_comments',['user'=>$user.id])}">Ta评论过</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="layui-col-md9">
                <div class="panel user-nav-content">
                    <div class="comments-tab">
                        <ol>
                            {volist name='commentList' id='v'}
                            <li>
                                <div>
                                    <span class="date">{$v.create_time}</span>
                                    {if isset($v.to_user)}
                                    <a href="{:url('index/index/user_jianjie',['user'=>$v.to_user.id])}" class="username">@{$v.to_user.nickname|default=$v.to_user.username}</a>
                                    {/if}
                                    <a href="{:url('post/home.index/content',['id'=>$v.article.id])}" class="title">{$v.article.post_title}</a>
                                </div>
                                <div>
                                    {$v.content|raw}
                                </div>
                            </li>
                            {/volist}
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
<!--底部-->
{include file="../application/index/view/common/footer.html" /}
<!--右侧固定导航区域-->
{include file="../application/index/view/common/righ_fixed.html" /}
</body>
</html>